package com.day05;

public class MethodTest01 {
    public static void main(String[] args) {
        int [] arr={11,22,33,44,55};
        printArray(arr);
    }
    public static void printArray(int[] arr){
        System.out.println("[");
        for(int x=0;x<arr.length;x++){
            if(x==arr.length-1){
                System.out.println(arr[x]);
            }else{
                System.out.println(arr[x]+",");
            }
        }
        System.out.println("]");
        }
    }

